package com.ztesoft.report.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ztesoft.report.base.entity.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户常用菜单
 * </p>
 *
 * @author y3tu
 * @since 2018-07-23
 */
@TableName("SYS_MENU_USE")
public class SysMenuUse extends BaseEntity<Long> {

    private static final long serialVersionUID = 1L;

    /**
     * 关联ID
     */
	@TableId("USER_MENU_ID")
	private String userMenuId;
    /**
     * 菜单ID
     */
	@TableField("MENU_ID")
	private String menuId;
    /**
     * 用户ID
     */
	@TableField("USER_ID")
	private String userId;
    /**
     * 收藏
     */
	@TableField("FAVORITE")
	private Integer favorite;
    /**
     * 点击次数
     */
	@TableField("CLICK_COUNT")
	private Long clickCount;
    /**
     * 最后点击时间
     */
	@TableField("LAST_DATE")
	private Date lastDate;


	public String getUserMenuId() {
		return userMenuId;
	}

	public void setUserMenuId(String userMenuId) {
		this.userMenuId = userMenuId;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getFavorite() {
		return favorite;
	}

	public void setFavorite(Integer favorite) {
		this.favorite = favorite;
	}

	public Long getClickCount() {
		return clickCount;
	}

	public void setClickCount(Long clickCount) {
		this.clickCount = clickCount;
	}

	public Date getLastDate() {
		return lastDate;
	}

	public void setLastDate(Date lastDate) {
		this.lastDate = lastDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.userMenuId;
	}

	@Override
	public String toString() {
		return "SysMenuUse{" +
			", userMenuId=" + userMenuId +
			", menuId=" + menuId +
			", userId=" + userId +
			", favorite=" + favorite +
			", clickCount=" + clickCount +
			", lastDate=" + lastDate +
			"}";
	}
}
